<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript">
	$.removeCookie('username');
	$.cookie('username', 'xwl', { expires: 7, path: '/' });
	console.log($.cookie('username'));
</script>